$var nav: add_member
	<section id="wrapper" class="add_author_wrapper">
		<h3>添加作者</h3>
		<input type="text" name="member_id" value="" id="member_id" class="inp" style="width:94px" placeholder="请输入画师ID号" />
		<input type="text" name="member_name" value="" id="member_name" class="inp" style="width:150px" placeholder="请输入画师名称" />
		<button type="reset" class="btn" id="add_author_btn">添加</button>
		<div class="alert-message success" style="margin-top: 10px; display: none;">
			<p><strong>画师录入成功 :)</strong></p>
		</div>
		<div class="alert-message error" style="margin-top: 10px; display: none;">
			<p><strong>请输入画师ID号和画师名~</strong></p>
		</div>
	</section>
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<script type="text/javascript">
		jQuery.noConflict()
		jQuery(function(){
			jQuery('#add_author_btn').click(function(){
				var member_id = jQuery('#member_id').val();
				var member_name = jQuery('#member_name').val();
				if(isNaN(member_id)){
					jQuery('.error').find('strong').html('画师ID号必须为数字喔~');
					jQuery('.error').fadeIn('slow');
					return;
				}
				if(member_id == '' || member_name == ''){
					jQuery('.error').find('strong').html('画师ID号和画师名都必须要输入~');
					jQuery('.error').fadeIn('slow');
				}else{
					jQuery('.error').hide();
					jQuery.ajax({
						type:'post',
						url:'/ajax_process',
						data:{'action': 'add_artist', 'member_id': member_id, 'member_name': member_name},
						success:function(data){
							if(data){
								jQuery('#member_id').val('');
								jQuery('#member_name').val('');
								jQuery('.success').fadeIn('slow');
								setTimeout(function(){
									jQuery('.success').fadeOut('slow');
								},3000);
							}else{
								jQuery('.error').find('strong').html('仿佛遇到了点问题 :(<br/>请打开控制台查看详细错误.');
								jQuery('.error').fadeIn('slow');
							}
						}
					});
				}
			});
		});
	</script>